package com.ow.dva.module.terminal.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 终端机表
 * </p>
 *
 * @author JiangYanpeng
 * @since 2020-02-27
 * @version V1.0
 */
@TableName("dva_termina")
@ApiModel(value="Termina对象", description="终端机表")
public class Termina implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    @ApiModelProperty(value = "停车场终端机编号")
    private String code;

    @ApiModelProperty(value = "在线状态（0-不在线 1-在线）")
    private Integer status;


    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createTime;

    @ApiModelProperty(value = "绑定状态（0-未绑定  1- 已绑定）")
    private Integer bindStatus;

    @ApiModelProperty(value = "推送状态（0-未推送  1- 已推送）")
    private Integer postStatus;

    @TableField(exist = false)
    private String terminaIp;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    public Integer getBindStatus() {
        return bindStatus;
    }

    public void setBindStatus(Integer bindStatus) {
        this.bindStatus = bindStatus;
    }

    public String getTerminaIp() {
        return terminaIp;
    }

    public void setTerminaIp(String terminaIp) {
        this.terminaIp = terminaIp;
    }

    public Integer getPostStatus() {
        return postStatus;
    }

    public void setPostStatus(Integer postStatus) {
        this.postStatus = postStatus;
    }


    @Override
    public String toString() {
        return "Termina{" +
                "id='" + id+
                ", code='" + code +
                ", status=" + status +
                ", createTime=" + createTime +
                ", bindStatus=" + bindStatus +
                ", postStatus=" + postStatus +
                '}';
    }
}
